# redirect to version without the www. on the front
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.fedoramagazine\.org [NC]
RewriteRule ^(.*)$ http://fedoramagazine.org%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS_HOST} ^www\.fedoramagazine\.org [NC]
RewriteRule ^(.*)$ https://fedoramagazine.org%{REQUEST_URI} [L,R=301]

#ProxyPass / http://wp-fedoramag.rhcloud.com/
#ProxyPassReverse / http://wp-fedoramag.rhcloud.com/
{% if env == "production" %}
ProxyPass / http://209.132.184.52/
ProxyPassReverse / http://209.132.184.52/
{% else %}
# In staging we point to the staging version of the magazine
ProxyPass / http://66.226.72.133/
ProxyPassReverse / http://66.226.72.133/
{% endif %}
